import request from "@/util/request";

// 发布动态
export const adddynamic = (article) => request({
  url: '/qichong-record/community/article/submit',
  method: 'post',
  data: article
})

// 根据圈子下面的圈子分类树形结构
export const getstructure = () => request({
  url: '/qichong-record/api/category/tree',
  showLoading: false
})

// 根据搜索框关键字搜索圈子
export const getSearhstructure = (key) => request({
  url: '/qichong-record/api/category/search',
  params: {
    key
  }
})
